Skip to content

Conversation

@crisbeto
Copy link
Member

Includes a couple of refactors in the direction of allowing us to introduce a custom DI token for controlling Material animations:

refactor(multiple): consolidate logic for disabling animations

Adds a common function we can use to determine whether animations are disabled globally. This reduces duplication and makes it easier to change the logic.

refactor(cdk/overlay): add config option for disabling animations

Currently the CDK overlay uses ANIMATION_MODULE_TYPE to implicitly disable the backdrop animation, however we want to introduce a Material-specific way of disabling animations. These changes add a config option that we can use to do so.

Adds a common function we can use to determine whether animations are disabled globally. This reduces duplication and makes it easier to change the logic.
@crisbeto crisbeto added target: major This PR is targeted for the next major release merge: preserve commits When the PR is merged, a rebase and merge should be performed labels Mar 19, 2025
@crisbeto crisbeto requested a review from a team as a code owner March 19, 2025 12:56
@crisbeto crisbeto requested review from andrewseguin and mmalerba and removed request for a team March 19, 2025 12:56
Currently the CDK overlay uses `ANIMATION_MODULE_TYPE` to implicitly disable the backdrop animation, however we want to introduce a Material-specific way of disabling animations. These changes add a config option that we can use to do so.
@crisbeto crisbeto force-pushed the consolidate-animations-disabled branch from f8e01aa to 371be9e Compare March 19, 2025 13:03
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Mar 19, 2025
@crisbeto crisbeto merged commit 1ffe706 into angular:main Mar 19, 2025
19 of 22 checks passed
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: cdk/overlay merge: preserve commits When the PR is merged, a rebase and merge should be performed target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants